home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
CHASSIS_
/
MYCLIKLO.C
< prev
next >
Wrap
Text File
|
1992-05-14
|
1KB
|
33 lines
/************************************************************************************/
/* myClikLoop */
/* */
/* Note: executed repeatedly when the mouse is held down, and dragged outside of */
/* the viewRect */
/************************************************************************************/
#include "MyHeaders.h"
pascal Boolean myClikLoop()
{
int myClikRetCode;
Point myMouseLoc;
int vScrollAmt;
myClikRetCode = TRUE;
GetMouse (&myMouseLoc);
GetClip(workRegionH); /* sve clip rgn */
ClipRect(&(*windTbl[windSub].windPtr).portRect); /* reset it */
if (myMouseLoc.v > (**windTbl[windSub].windTEH[0]).viewRect.bottom) /* down */
myActionProc (windTbl[windSub].windCntlH[0], inDownButton);
else
if (myMouseLoc.v < (**windTbl[windSub].windTEH[0]).viewRect.top) /* up */
myActionProc (windTbl[windSub].windCntlH[0], inUpButton);
SetClip(workRegionH); /* restore clip */
return myClikRetCode;
}